using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetQQGroupRequest : GeneratedMessageLite<GetQQGroupRequest, GetQQGroupRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetQQGroupRequest, GetQQGroupRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GetQQGroupRequest result;
			protected override GetQQGroupRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetQQGroupRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetQQGroupRequest DefaultInstanceForType
			{
				get
				{
					return GetQQGroupRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint OpType
			{
				get
				{
					return this.result.OpType;
				}
				set
				{
					this.SetOpType(value);
				}
			}
			public uint GroupID
			{
				get
				{
					return this.result.GroupID;
				}
				set
				{
					this.SetGroupID(value);
				}
			}
			public Builder()
			{
				this.result = GetQQGroupRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetQQGroupRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetQQGroupRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetQQGroupRequest other = this.result;
					this.result = new GetQQGroupRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetQQGroupRequest.Builder Clear()
			{
				this.result = GetQQGroupRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetQQGroupRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetQQGroupRequest.Builder(this.result);
				}
				return new GetQQGroupRequest.Builder().MergeFrom(this.result);
			}
			public override GetQQGroupRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetQQGroupRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetQQGroupRequest)
				{
					return this.MergeFrom((GetQQGroupRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetQQGroupRequest.Builder MergeFrom(GetQQGroupRequest other)
			{
				return this;
			}
			public override GetQQGroupRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetQQGroupRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetQQGroupRequest._getQQGroupRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetQQGroupRequest._getQQGroupRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasOpType = input.ReadUInt32(ref this.result.opType_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasGroupID = input.ReadUInt32(ref this.result.groupID_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetQQGroupRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GetQQGroupRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GetQQGroupRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GetQQGroupRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GetQQGroupRequest.Builder SetOpType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpType = true;
				this.result.opType_ = value;
				return this;
			}
			public GetQQGroupRequest.Builder ClearOpType()
			{
				this.PrepareBuilder();
				this.result.hasOpType = false;
				this.result.opType_ = 0u;
				return this;
			}
			public GetQQGroupRequest.Builder SetGroupID(uint value)
			{
				this.PrepareBuilder();
				this.result.hasGroupID = true;
				this.result.groupID_ = value;
				return this;
			}
			public GetQQGroupRequest.Builder ClearGroupID()
			{
				this.PrepareBuilder();
				this.result.hasGroupID = false;
				this.result.groupID_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int OpTypeFieldNumber = 2;
		public const int GroupIDFieldNumber = 3;
		private static readonly GetQQGroupRequest defaultInstance;
		private static readonly string[] _getQQGroupRequestFieldNames;
		private static readonly uint[] _getQQGroupRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasOpType;
		private uint opType_;
		private bool hasGroupID;
		private uint groupID_;
		private int memoizedSerializedSize = -1;
		public static GetQQGroupRequest DefaultInstance
		{
			get
			{
				return GetQQGroupRequest.defaultInstance;
			}
		}
		public override GetQQGroupRequest DefaultInstanceForType
		{
			get
			{
				return GetQQGroupRequest.DefaultInstance;
			}
		}
		protected override GetQQGroupRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint OpType
		{
			get
			{
				return this.opType_;
			}
		}
		public uint GroupID
		{
			get
			{
				return this.groupID_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasOpType && this.hasGroupID && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasOpType)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.OpType);
				}
				if (this.hasGroupID)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.GroupID);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetQQGroupRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getQQGroupRequestFieldNames = GetQQGroupRequest._getQQGroupRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, getQQGroupRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasOpType)
			{
				output.WriteUInt32(2, getQQGroupRequestFieldNames[2], this.OpType);
			}
			if (this.hasGroupID)
			{
				output.WriteUInt32(3, getQQGroupRequestFieldNames[1], this.GroupID);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasOpType)
			{
				num ^= this.opType_.GetHashCode();
			}
			if (this.hasGroupID)
			{
				num ^= this.groupID_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetQQGroupRequest getQQGroupRequest = value as GetQQGroupRequest;
			return getQQGroupRequest != null && (this.hasBaseRequest == getQQGroupRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(getQQGroupRequest.baseRequest_))) && (this.hasOpType == getQQGroupRequest.hasOpType && (!this.hasOpType || this.opType_.Equals(getQQGroupRequest.opType_))) && (this.hasGroupID == getQQGroupRequest.hasGroupID && (!this.hasGroupID || this.groupID_.Equals(getQQGroupRequest.groupID_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetQQGroupRequest, GetQQGroupRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GetQQGroupRequest, GetQQGroupRequest.Builder>.PrintField("OpType", this.hasOpType, this.opType_, writer);
			GeneratedMessageLite<GetQQGroupRequest, GetQQGroupRequest.Builder>.PrintField("GroupID", this.hasGroupID, this.groupID_, writer);
		}
		public static GetQQGroupRequest ParseFrom(byte[] data)
		{
			return GetQQGroupRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetQQGroupRequest MakeReadOnly()
		{
			return this;
		}
		public static GetQQGroupRequest.Builder CreateBuilder()
		{
			return new GetQQGroupRequest.Builder();
		}
		public override GetQQGroupRequest.Builder ToBuilder()
		{
			return GetQQGroupRequest.CreateBuilder(this);
		}
		public override GetQQGroupRequest.Builder CreateBuilderForType()
		{
			return new GetQQGroupRequest.Builder();
		}
		public static GetQQGroupRequest.Builder CreateBuilder(GetQQGroupRequest prototype)
		{
			return new GetQQGroupRequest.Builder(prototype);
		}
		static GetQQGroupRequest()
		{
			GetQQGroupRequest.defaultInstance = new GetQQGroupRequest().MakeReadOnly();
			GetQQGroupRequest._getQQGroupRequestFieldNames = new string[]
			{
				"BaseRequest",
				"GroupID",
				"OpType"
			};
			GetQQGroupRequest._getQQGroupRequestFieldTags = new uint[]
			{
				10u,
				24u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.GetQQGroupRequest.Descriptor, null);
		}
	}
}
